<include file="Public/frame-header" />
</head>
<body class="J_scroll_fixed" style="min-width:800px;">
<div class="wrap J_check_wrap">
	<ul class="nav nav-tabs">
	   <li class="active"><a href="{:U('/Admin/BeautyParlor/index')}">美容院列表</a></li>
	   <li class=""><a href="{:U('/Admin/BeautyParlor/add')}">添加美容院</a></li>
	</ul>
	<form class="well form-search" method="get" action="{:U('/Admin/BeautyParlor/index')}">
		<div class="search_type cc mb10">
			<div class="mb10">
				<span class="mr20">分类： 
					美容院： <input type="text" name="name" value="" style="width: 200px;" placeholder="美容院"> &nbsp;&nbsp;
					城市：<select name="city">
						<option value="-1"></option>
			    		<foreach name="citys" item="city">
			    			<option value="{$city.city}">{$city.city}</option>
			    		</foreach>
					</select> &nbsp;&nbsp;
					<input type="submit" class="btn btn-primary" value="搜索">
				</span>
			</div>
		</div>
	</form>
	<form class="J_ajaxForm" action="" method="post">
		<div class="table-actions">
			<button class="btn btn-primary btn-small J_ajax_submit_btn" type="submit" 
			data-action="{:U('/Admin/BeautyParlor/delete')}" data-subcheck="true" data-msg="你确定删除吗？">删除</button>
		</div>
		<table class="table table-hover table-bordered table-list">
			<thead>
				<tr>
					<th width="15"><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></th>
					<th>编号</th>
					<th>美容院名称</th>
					<th>地址</th>
					<th>电话号码</th>
					<th><a href="{:U('/Admin/BeautyParlor/index/sort_type/'.$sort_type)}">总收入</a></th>
					<th>操作</th>
				</tr>
			</thead>
			<foreach name="list" item="item">
			<tr>
				<td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="ids[]" value="{$item.id}" ></td>
				<td>{$item.id}</td>
				<td>{$item.name}</td>
				<td >{$item.address}</td>
				<td >{$item.telphone}</td>
				<td >{$item.income}</td>
				<td >
					<a href="{:U('/Admin/BeautyParlor/edit/id/'.$item['id'])}">修改</a>
					<if condition="$item['status'] neq 0">
					<a class="J_ajax_del" href="{:U('/Admin/BeautyParlor/delete/id/'.$item['id'])}">删除</a>
					</if>
					<a href="{:U('/Admin/BeautyParlor/setZizhi/id/'.$item['id'])}">填写资质</a>
					<a href="{:U('/Admin/BeautyParlor/addEmployee/id/'.$item['id'])}">添加美容师</a>
					<a href="{:U('/Admin/Order/index/beauty_id/'.$item['id'])}">订单管理</a>
					<a href="{:U('/Admin/Comments/index/beauty_id/'.$item['id'])}">评论管理</a>
				</td>
			</tr>
			</foreach>
			<tfoot>
				<tr>
					<th width="15"><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></th>
					<th>编号</th>
					<th>美容院名称</th>
					<th>地址</th>
					<th>电话号码</th>
					<th><a href="{:U('/Admin/BeautyParlor/index/sort_type/'.$sort_type)}">总收入</a></th>
					<th>操作</th>
				</tr>
			</tfoot>
		</table>
		<div class="table-actions">
			<button class="btn btn-primary btn-small J_ajax_submit_btn" type="submit" 
			data-action="{:U('/Admin/BeautyParlor/delete')}" data-subcheck="true" data-msg="你确定删除吗？">删除</button>
		</div>
		<div class="pagination">{$Page}</div>
	</form>
	<script src="__ADMIN__/statics/js/common.js"></script>
</body>
</html>